package com.jtcl.module.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.List;

/**
 * @author sjt
 * @since 2021-01-29 14:50
 */
@Data
@NoArgsConstructor
public class User {
    @Id
    private String id;
    private String name;
    private Integer age;
    private Boolean sex;
    private Org org;

    public User(String name, Integer age, Boolean sex, Org org) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.org = org;
    }

    public User(String name, Integer age, Boolean sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
}
